#!/bin/sh

sed -i "s/%PAGE_TITLE%/${PAGE_TITLE}/" /ldap-passwd-webui/settings.ini
sed -i "s/%HOST%/${HOST}/" /ldap-passwd-webui/settings.ini
sed -i "s/%PORT%/${PORT}/" /ldap-passwd-webui/settings.ini
sed -i "s/%SEARCH_BASE%/${SEARCH_BASE}/" /ldap-passwd-webui/settings.ini
sed -i "s/%LOGIN_DN%/${LOGIN_DN}/" /ldap-passwd-webui/settings.ini
sed -i "s/%ADMIN_PASSWORD%/${ADMIN_PASSWORD}/" /ldap-passwd-webui/settings.ini

python3 /ldap-passwd-webui/app.py
